package com.xb.cloud.user.model;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class EndUserRegistLogExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public EndUserRegistLogExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andEndUserIdIsNull() {
            addCriterion("end_user_id is null");
            return (Criteria) this;
        }

        public Criteria andEndUserIdIsNotNull() {
            addCriterion("end_user_id is not null");
            return (Criteria) this;
        }

        public Criteria andEndUserIdEqualTo(Long value) {
            addCriterion("end_user_id =", value, "endUserId");
            return (Criteria) this;
        }

        public Criteria andEndUserIdNotEqualTo(Long value) {
            addCriterion("end_user_id <>", value, "endUserId");
            return (Criteria) this;
        }

        public Criteria andEndUserIdGreaterThan(Long value) {
            addCriterion("end_user_id >", value, "endUserId");
            return (Criteria) this;
        }

        public Criteria andEndUserIdGreaterThanOrEqualTo(Long value) {
            addCriterion("end_user_id >=", value, "endUserId");
            return (Criteria) this;
        }

        public Criteria andEndUserIdLessThan(Long value) {
            addCriterion("end_user_id <", value, "endUserId");
            return (Criteria) this;
        }

        public Criteria andEndUserIdLessThanOrEqualTo(Long value) {
            addCriterion("end_user_id <=", value, "endUserId");
            return (Criteria) this;
        }

        public Criteria andEndUserIdIn(List<Long> values) {
            addCriterion("end_user_id in", values, "endUserId");
            return (Criteria) this;
        }

        public Criteria andEndUserIdNotIn(List<Long> values) {
            addCriterion("end_user_id not in", values, "endUserId");
            return (Criteria) this;
        }

        public Criteria andEndUserIdBetween(Long value1, Long value2) {
            addCriterion("end_user_id between", value1, value2, "endUserId");
            return (Criteria) this;
        }

        public Criteria andEndUserIdNotBetween(Long value1, Long value2) {
            addCriterion("end_user_id not between", value1, value2, "endUserId");
            return (Criteria) this;
        }

        public Criteria andCompanyIdIsNull() {
            addCriterion("company_id is null");
            return (Criteria) this;
        }

        public Criteria andCompanyIdIsNotNull() {
            addCriterion("company_id is not null");
            return (Criteria) this;
        }

        public Criteria andCompanyIdEqualTo(Long value) {
            addCriterion("company_id =", value, "companyId");
            return (Criteria) this;
        }

        public Criteria andCompanyIdNotEqualTo(Long value) {
            addCriterion("company_id <>", value, "companyId");
            return (Criteria) this;
        }

        public Criteria andCompanyIdGreaterThan(Long value) {
            addCriterion("company_id >", value, "companyId");
            return (Criteria) this;
        }

        public Criteria andCompanyIdGreaterThanOrEqualTo(Long value) {
            addCriterion("company_id >=", value, "companyId");
            return (Criteria) this;
        }

        public Criteria andCompanyIdLessThan(Long value) {
            addCriterion("company_id <", value, "companyId");
            return (Criteria) this;
        }

        public Criteria andCompanyIdLessThanOrEqualTo(Long value) {
            addCriterion("company_id <=", value, "companyId");
            return (Criteria) this;
        }

        public Criteria andCompanyIdIn(List<Long> values) {
            addCriterion("company_id in", values, "companyId");
            return (Criteria) this;
        }

        public Criteria andCompanyIdNotIn(List<Long> values) {
            addCriterion("company_id not in", values, "companyId");
            return (Criteria) this;
        }

        public Criteria andCompanyIdBetween(Long value1, Long value2) {
            addCriterion("company_id between", value1, value2, "companyId");
            return (Criteria) this;
        }

        public Criteria andCompanyIdNotBetween(Long value1, Long value2) {
            addCriterion("company_id not between", value1, value2, "companyId");
            return (Criteria) this;
        }

        public Criteria andRegistAppVersionIsNull() {
            addCriterion("regist_app_version is null");
            return (Criteria) this;
        }

        public Criteria andRegistAppVersionIsNotNull() {
            addCriterion("regist_app_version is not null");
            return (Criteria) this;
        }

        public Criteria andRegistAppVersionEqualTo(String value) {
            addCriterion("regist_app_version =", value, "registAppVersion");
            return (Criteria) this;
        }

        public Criteria andRegistAppVersionNotEqualTo(String value) {
            addCriterion("regist_app_version <>", value, "registAppVersion");
            return (Criteria) this;
        }

        public Criteria andRegistAppVersionGreaterThan(String value) {
            addCriterion("regist_app_version >", value, "registAppVersion");
            return (Criteria) this;
        }

        public Criteria andRegistAppVersionGreaterThanOrEqualTo(String value) {
            addCriterion("regist_app_version >=", value, "registAppVersion");
            return (Criteria) this;
        }

        public Criteria andRegistAppVersionLessThan(String value) {
            addCriterion("regist_app_version <", value, "registAppVersion");
            return (Criteria) this;
        }

        public Criteria andRegistAppVersionLessThanOrEqualTo(String value) {
            addCriterion("regist_app_version <=", value, "registAppVersion");
            return (Criteria) this;
        }

        public Criteria andRegistAppVersionLike(String value) {
            addCriterion("regist_app_version like", value, "registAppVersion");
            return (Criteria) this;
        }

        public Criteria andRegistAppVersionNotLike(String value) {
            addCriterion("regist_app_version not like", value, "registAppVersion");
            return (Criteria) this;
        }

        public Criteria andRegistAppVersionIn(List<String> values) {
            addCriterion("regist_app_version in", values, "registAppVersion");
            return (Criteria) this;
        }

        public Criteria andRegistAppVersionNotIn(List<String> values) {
            addCriterion("regist_app_version not in", values, "registAppVersion");
            return (Criteria) this;
        }

        public Criteria andRegistAppVersionBetween(String value1, String value2) {
            addCriterion("regist_app_version between", value1, value2, "registAppVersion");
            return (Criteria) this;
        }

        public Criteria andRegistAppVersionNotBetween(String value1, String value2) {
            addCriterion("regist_app_version not between", value1, value2, "registAppVersion");
            return (Criteria) this;
        }

        public Criteria andRegistIdfaIsNull() {
            addCriterion("regist_idfa is null");
            return (Criteria) this;
        }

        public Criteria andRegistIdfaIsNotNull() {
            addCriterion("regist_idfa is not null");
            return (Criteria) this;
        }

        public Criteria andRegistIdfaEqualTo(String value) {
            addCriterion("regist_idfa =", value, "registIdfa");
            return (Criteria) this;
        }

        public Criteria andRegistIdfaNotEqualTo(String value) {
            addCriterion("regist_idfa <>", value, "registIdfa");
            return (Criteria) this;
        }

        public Criteria andRegistIdfaGreaterThan(String value) {
            addCriterion("regist_idfa >", value, "registIdfa");
            return (Criteria) this;
        }

        public Criteria andRegistIdfaGreaterThanOrEqualTo(String value) {
            addCriterion("regist_idfa >=", value, "registIdfa");
            return (Criteria) this;
        }

        public Criteria andRegistIdfaLessThan(String value) {
            addCriterion("regist_idfa <", value, "registIdfa");
            return (Criteria) this;
        }

        public Criteria andRegistIdfaLessThanOrEqualTo(String value) {
            addCriterion("regist_idfa <=", value, "registIdfa");
            return (Criteria) this;
        }

        public Criteria andRegistIdfaLike(String value) {
            addCriterion("regist_idfa like", value, "registIdfa");
            return (Criteria) this;
        }

        public Criteria andRegistIdfaNotLike(String value) {
            addCriterion("regist_idfa not like", value, "registIdfa");
            return (Criteria) this;
        }

        public Criteria andRegistIdfaIn(List<String> values) {
            addCriterion("regist_idfa in", values, "registIdfa");
            return (Criteria) this;
        }

        public Criteria andRegistIdfaNotIn(List<String> values) {
            addCriterion("regist_idfa not in", values, "registIdfa");
            return (Criteria) this;
        }

        public Criteria andRegistIdfaBetween(String value1, String value2) {
            addCriterion("regist_idfa between", value1, value2, "registIdfa");
            return (Criteria) this;
        }

        public Criteria andRegistIdfaNotBetween(String value1, String value2) {
            addCriterion("regist_idfa not between", value1, value2, "registIdfa");
            return (Criteria) this;
        }

        public Criteria andRegistIpIsNull() {
            addCriterion("regist_ip is null");
            return (Criteria) this;
        }

        public Criteria andRegistIpIsNotNull() {
            addCriterion("regist_ip is not null");
            return (Criteria) this;
        }

        public Criteria andRegistIpEqualTo(String value) {
            addCriterion("regist_ip =", value, "registIp");
            return (Criteria) this;
        }

        public Criteria andRegistIpNotEqualTo(String value) {
            addCriterion("regist_ip <>", value, "registIp");
            return (Criteria) this;
        }

        public Criteria andRegistIpGreaterThan(String value) {
            addCriterion("regist_ip >", value, "registIp");
            return (Criteria) this;
        }

        public Criteria andRegistIpGreaterThanOrEqualTo(String value) {
            addCriterion("regist_ip >=", value, "registIp");
            return (Criteria) this;
        }

        public Criteria andRegistIpLessThan(String value) {
            addCriterion("regist_ip <", value, "registIp");
            return (Criteria) this;
        }

        public Criteria andRegistIpLessThanOrEqualTo(String value) {
            addCriterion("regist_ip <=", value, "registIp");
            return (Criteria) this;
        }

        public Criteria andRegistIpLike(String value) {
            addCriterion("regist_ip like", value, "registIp");
            return (Criteria) this;
        }

        public Criteria andRegistIpNotLike(String value) {
            addCriterion("regist_ip not like", value, "registIp");
            return (Criteria) this;
        }

        public Criteria andRegistIpIn(List<String> values) {
            addCriterion("regist_ip in", values, "registIp");
            return (Criteria) this;
        }

        public Criteria andRegistIpNotIn(List<String> values) {
            addCriterion("regist_ip not in", values, "registIp");
            return (Criteria) this;
        }

        public Criteria andRegistIpBetween(String value1, String value2) {
            addCriterion("regist_ip between", value1, value2, "registIp");
            return (Criteria) this;
        }

        public Criteria andRegistIpNotBetween(String value1, String value2) {
            addCriterion("regist_ip not between", value1, value2, "registIp");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNull() {
            addCriterion("create_time is null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNotNull() {
            addCriterion("create_time is not null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeEqualTo(Date value) {
            addCriterion("create_time =", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotEqualTo(Date value) {
            addCriterion("create_time <>", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThan(Date value) {
            addCriterion("create_time >", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("create_time >=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThan(Date value) {
            addCriterion("create_time <", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
            addCriterion("create_time <=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIn(List<Date> values) {
            addCriterion("create_time in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotIn(List<Date> values) {
            addCriterion("create_time not in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeBetween(Date value1, Date value2) {
            addCriterion("create_time between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
            addCriterion("create_time not between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andRegistDeviceCodeIsNull() {
            addCriterion("regist_device_code is null");
            return (Criteria) this;
        }

        public Criteria andRegistDeviceCodeIsNotNull() {
            addCriterion("regist_device_code is not null");
            return (Criteria) this;
        }

        public Criteria andRegistDeviceCodeEqualTo(String value) {
            addCriterion("regist_device_code =", value, "registDeviceCode");
            return (Criteria) this;
        }

        public Criteria andRegistDeviceCodeNotEqualTo(String value) {
            addCriterion("regist_device_code <>", value, "registDeviceCode");
            return (Criteria) this;
        }

        public Criteria andRegistDeviceCodeGreaterThan(String value) {
            addCriterion("regist_device_code >", value, "registDeviceCode");
            return (Criteria) this;
        }

        public Criteria andRegistDeviceCodeGreaterThanOrEqualTo(String value) {
            addCriterion("regist_device_code >=", value, "registDeviceCode");
            return (Criteria) this;
        }

        public Criteria andRegistDeviceCodeLessThan(String value) {
            addCriterion("regist_device_code <", value, "registDeviceCode");
            return (Criteria) this;
        }

        public Criteria andRegistDeviceCodeLessThanOrEqualTo(String value) {
            addCriterion("regist_device_code <=", value, "registDeviceCode");
            return (Criteria) this;
        }

        public Criteria andRegistDeviceCodeLike(String value) {
            addCriterion("regist_device_code like", value, "registDeviceCode");
            return (Criteria) this;
        }

        public Criteria andRegistDeviceCodeNotLike(String value) {
            addCriterion("regist_device_code not like", value, "registDeviceCode");
            return (Criteria) this;
        }

        public Criteria andRegistDeviceCodeIn(List<String> values) {
            addCriterion("regist_device_code in", values, "registDeviceCode");
            return (Criteria) this;
        }

        public Criteria andRegistDeviceCodeNotIn(List<String> values) {
            addCriterion("regist_device_code not in", values, "registDeviceCode");
            return (Criteria) this;
        }

        public Criteria andRegistDeviceCodeBetween(String value1, String value2) {
            addCriterion("regist_device_code between", value1, value2, "registDeviceCode");
            return (Criteria) this;
        }

        public Criteria andRegistDeviceCodeNotBetween(String value1, String value2) {
            addCriterion("regist_device_code not between", value1, value2, "registDeviceCode");
            return (Criteria) this;
        }

        public Criteria andRegistImeiIsNull() {
            addCriterion("regist_imei is null");
            return (Criteria) this;
        }

        public Criteria andRegistImeiIsNotNull() {
            addCriterion("regist_imei is not null");
            return (Criteria) this;
        }

        public Criteria andRegistImeiEqualTo(String value) {
            addCriterion("regist_imei =", value, "registImei");
            return (Criteria) this;
        }

        public Criteria andRegistImeiNotEqualTo(String value) {
            addCriterion("regist_imei <>", value, "registImei");
            return (Criteria) this;
        }

        public Criteria andRegistImeiGreaterThan(String value) {
            addCriterion("regist_imei >", value, "registImei");
            return (Criteria) this;
        }

        public Criteria andRegistImeiGreaterThanOrEqualTo(String value) {
            addCriterion("regist_imei >=", value, "registImei");
            return (Criteria) this;
        }

        public Criteria andRegistImeiLessThan(String value) {
            addCriterion("regist_imei <", value, "registImei");
            return (Criteria) this;
        }

        public Criteria andRegistImeiLessThanOrEqualTo(String value) {
            addCriterion("regist_imei <=", value, "registImei");
            return (Criteria) this;
        }

        public Criteria andRegistImeiLike(String value) {
            addCriterion("regist_imei like", value, "registImei");
            return (Criteria) this;
        }

        public Criteria andRegistImeiNotLike(String value) {
            addCriterion("regist_imei not like", value, "registImei");
            return (Criteria) this;
        }

        public Criteria andRegistImeiIn(List<String> values) {
            addCriterion("regist_imei in", values, "registImei");
            return (Criteria) this;
        }

        public Criteria andRegistImeiNotIn(List<String> values) {
            addCriterion("regist_imei not in", values, "registImei");
            return (Criteria) this;
        }

        public Criteria andRegistImeiBetween(String value1, String value2) {
            addCriterion("regist_imei between", value1, value2, "registImei");
            return (Criteria) this;
        }

        public Criteria andRegistImeiNotBetween(String value1, String value2) {
            addCriterion("regist_imei not between", value1, value2, "registImei");
            return (Criteria) this;
        }

        public Criteria andRegistChannelIsNull() {
            addCriterion("regist_channel is null");
            return (Criteria) this;
        }

        public Criteria andRegistChannelIsNotNull() {
            addCriterion("regist_channel is not null");
            return (Criteria) this;
        }

        public Criteria andRegistChannelEqualTo(Integer value) {
            addCriterion("regist_channel =", value, "registChannel");
            return (Criteria) this;
        }

        public Criteria andRegistChannelNotEqualTo(Integer value) {
            addCriterion("regist_channel <>", value, "registChannel");
            return (Criteria) this;
        }

        public Criteria andRegistChannelGreaterThan(Integer value) {
            addCriterion("regist_channel >", value, "registChannel");
            return (Criteria) this;
        }

        public Criteria andRegistChannelGreaterThanOrEqualTo(Integer value) {
            addCriterion("regist_channel >=", value, "registChannel");
            return (Criteria) this;
        }

        public Criteria andRegistChannelLessThan(Integer value) {
            addCriterion("regist_channel <", value, "registChannel");
            return (Criteria) this;
        }

        public Criteria andRegistChannelLessThanOrEqualTo(Integer value) {
            addCriterion("regist_channel <=", value, "registChannel");
            return (Criteria) this;
        }

        public Criteria andRegistChannelIn(List<Integer> values) {
            addCriterion("regist_channel in", values, "registChannel");
            return (Criteria) this;
        }

        public Criteria andRegistChannelNotIn(List<Integer> values) {
            addCriterion("regist_channel not in", values, "registChannel");
            return (Criteria) this;
        }

        public Criteria andRegistChannelBetween(Integer value1, Integer value2) {
            addCriterion("regist_channel between", value1, value2, "registChannel");
            return (Criteria) this;
        }

        public Criteria andRegistChannelNotBetween(Integer value1, Integer value2) {
            addCriterion("regist_channel not between", value1, value2, "registChannel");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}